-- GENERATED SPELL FOR [Falcon Spirit] --


function spell0_23135(pUnit, Event) --@Speed of the Falcon,Self--
pUnit:FullCastSpellOnTarget(40241,pUnit)
pUnit:RegisterEvent('Sorts_23135', 6282, 1)
end

function Sorts_23135(pUnit, Event)
local choix_sorts_23135 = math.random(0, 0)
if choix_sorts_23135 == 0 then
pUnit:RegisterEvent('spell0_23135', 1, 1)
end
end

function mob23135_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23135', math.random(1500, 3000), 1)
end

function mob23135_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23135_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23135_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23135, 1, 'mob23135_Action')
RegisterUnitEvent(23135, 2, 'mob23135_Leave')
RegisterUnitEvent(23135, 3, 'mob23135_Kill')
RegisterUnitEvent(23135, 4, 'mob23135_Die')
